<template>
	<view>
		<!-- 用户信息 -->
		<my-userinfo v-if="token"></my-userinfo>
		<!-- 登录组件 -->
		<my-login v-else></my-login>
	</view>
</template>

<script>
	import { mapGetters, mapState } from 'vuex'
	import tabbarBadge from '../../mixins/tabbar-badge.js'
	export default {
		mixins: [ tabbarBadge ],
		name: 'my',
		computed: {
			...mapState('m_user', ['token'])
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">

</style>
